import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Layout from "../layout/Layout";
const routes = [
  {
    path: '/',
    name: 'Layout',
    component: Layout,
    redirect: "/alllog",
    children:[
      {
        path: '/text',
        name: 'Home',
        component: Home
      },
      {
        path: '/alllog',
        name: 'alllog',
        component: () => import('@/views/Alllog')
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
